package com.mit.web.config
{
	import flash.display.DisplayObject;
	
	import mx.collections.ArrayCollection;

	public class Constants
	{
		//Bundle files
		public static const BUNDLE_COMMON:String = "resources";
		public static const BUNDLE_MAINTENANCE:String = "maintenance";
		
		//SharedObject
		public static const SO_USER_OPTION:String = "SO_USER_OPTION";
		//Remote service
		public static const REMOTE_OBJECT_DESIGN:String = "com.mit.web.business.DesignService";
		public static const REMOTE_OBJECT_MAINTENANCE:String = "com.mit.web.business.MaintenanceService";
		public static const REMOTE_OBJECT_SECURITY:String = "com.mit.web.business.SecurityService";
		public static const REMOTE_OBJECT_PURCHASE:String = "com.mit.web.business.PurchaseService";
		public static const REMOTE_OBJECT_SALE:String = "com.mit.web.business.SaleService";
		public static const REMOTE_OBJECT_MANUFACTURE:String = "com.mit.web.business.ManufactureService";
		public static const REMOTE_OBJECT_INVENTORY:String = "com.mit.web.business.InventoryService";
		public static const REMOTE_OBJECT_FINANCE:String = "com.mit.web.business.FinanceService";		
		
		//Module configuration
		public static const MODULE_CONFIG_FILE:String = "com/mit/web/config/ModuleConfig.xml";
		public static const MODULE_HOME_ID:String = "mdl_home";
		
		public static const ALERT_COLOR:int = 0XFF6600;
		public static const OK_COLOR:int = 0X33cc00;
		//Data
		public static const MALE:String = "M";
		public static const FEMALE:String = "F";
		public static const YES:String = "Y";
		public static const NO:String = "N";
		public static const PRIMARY:String = "PRMY";
		public static const SECONDARY:String = "SCND";
		public static const OPEN:String = "OPEN";
		public static const CLOSE:String = "CLOSE";
		public static const TASK_STATE:ArrayCollection = new ArrayCollection([
			{data:OPEN, label:"进行中"},
			{data:CLOSE, label:"已完成"}]);
		
		public static const TEMPLATE_HARD:String = "H";
		public static const TEMPLATE_SOFT:String = "S";
		
		//Others
		public static const CURRENCY_SYMBEL:String = "￥";
		public static const GRID_CHECK_COLUMN_HEADER_NAME:String = "_header";
		public static const PROJECT_ROOT:String = "MIT_Web";
		
		public static const UPLOAD_HANDLER:String = "UploadServlet";
		public static const REMOVE_UPLOAD_HANDLER:String = "RemoveUploadedFileServlet";
		
		public static const UPLOAD_FOLDER:String = "upload/";
		public static const DEFAULT_IMG:String = "blankphoto.jpg";
		
		public static const STYLE_STATE_NEW:String = "NEW";
		//public static const STYLE_STATE_PAPR = "PAPR";
		//public static const STYLE_STATE_SPEC = "SPEC";
		//public static const STYLE_STATE_WEAR = "WEAR";
		//public static const STYLE_STATE_LARG = "LARG";
		public static const STYLE_STATE_APPR:String = "APPR";
		public static const STYLE_STATE_TERM:String = "TERM";
		public static const STYLE_STATE:ArrayCollection = new ArrayCollection([
			{data:STYLE_STATE_NEW, label:"进行中"},
			//{data:STYLE_STATE_PAPR, label:"硬样完成"},
			//{data:STYLE_STATE_SPEC, label:"专机完成"},
			//{data:STYLE_STATE_WEAR, label:"试样完成"},
			//{data:STYLE_STATE_LARG, label:"放码完成"},
			{data:STYLE_STATE_APPR, label:"已批准"},
			{data:STYLE_STATE_TERM, label:"已终止"}]);
		
		public static const MO_STATE_NEW:String = "NEW";
		public static const MO_STATE_APPR:String = "APPR";
		public static const MO_STATE_CLIP:String = "CLIP";
		public static const MO_STATE_COMPLETE:String = "COMP";
		public static const MO_STATES:ArrayCollection = new ArrayCollection([
			{data:MO_STATE_NEW, label:"未批准"},
			{data:MO_STATE_APPR, label:"已批准"},
			{data:MO_STATE_CLIP, label:"已裁床"},
			{data:MO_STATE_COMPLETE, label:"已收货"}
			]);
		
		public static const PO_STATE_NEW:String = "NEW";
		public static const PO_STATE_APPR:String = "APPR";
		public static const PO_STATE_COMPLETE:String = "COMP";
		public static const PO_STATES:ArrayCollection = new ArrayCollection([
			{data:MO_STATE_NEW, label:"未批准"},
			{data:MO_STATE_APPR, label:"已批准"},
			{data:MO_STATE_COMPLETE, label:"已发货"}
		]);
		public function Constants()
		{
		}
		
		public static const NOTE_NEW:String = "NEW";
		public static const NOTE_APPR:String = "APPR";
		public static const NOTE_STATES:ArrayCollection = new ArrayCollection([
			{data:NOTE_NEW, label:"未批准"},
			{data:NOTE_APPR, label:"已批准"},
		]);
	}
}